﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tools.Android
{
    public partial class SqliteConnectForm : Form
    {
        private bool _isSuccess = false;
        public SqliteConnectForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 测试完成后，确认连接
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_test_Click(object sender, EventArgs e)
        {
            _isSuccess = true;
        }


        /// <summary>
        /// 数据库连接测试
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btn_submit_Click(object sender, EventArgs e)
        {
            if (_isSuccess == true)
            {
                MessageBox.Show("提交成功");
            }
            else
            {
                MessageBox.Show("请确认连接字符是否正确！");
            }
        }
    }
}
